#! /bin/bash
## author:tian
## jar boot
echo "spt-exam启动测试环境9001-后台运行"
echo kill -9 spt-exam
jps | grep spt-exam| awk '{print $1}' | xargs kill -9 
echo boot start
#nohup java -server -Xms1g -Xmx1g -Xmn1g -XX:MetaspaceSize=256M -XX:MaxMetaspaceSize=256M   -XX:ReservedCodeCacheSize=256M -XX:MaxDirectMemorySize=1g -jar /usr/local/src/spt/spt-exam.jar --server.port=9001 --spring.profiles.active=test >/dev/null 2>&1&

nohup java -server -Xms512M -Xmx512M -Xmn512M -XX:MetaspaceSize=256M -XX:MaxMetaspaceSize=256M   -XX:ReservedCodeCacheSize=256M -XX:MaxDirectMemorySize=512M -jar /usr/local/src/spt/spt-exam.jar --server.port=9011 --spring.profiles.active=test >/dev/null 2>&1&

echo end
#end
